package com.stx.design.observer;

public class ObserverTest {

	public static void Test(){
		System.out.println("===========Begin ObserverTest===========");
		RealSubject realSub = new RealSubject();
		RealAObserver observerA = new RealAObserver();
		realSub.attach(observerA);
		RealBObserver observerB = new RealBObserver();
		realSub.attach(observerB);
		realSub.notifyChanged();
		System.out.println("===========End ObserverTest===========");
	}
	
	
}
